import type { ThemeConfig } from 'antd'

export const appConfig = {
  appName: 'AiFlowy',
  theme: {
    token: {
      colorPrimary: '#1890ff',
      borderRadius: 6,
    },
    components: {
      Layout: {
        headerBg: '#fff',
        siderBg: '#001529',
      },
    },
  } as ThemeConfig,
  api: {
    baseURL: import.meta.env.VITE_APP_SERVER_ENDPOINT || '',
    timeout: 30000,
  },
  auth: {
    tokenKey: import.meta.env.VITE_APP_TOKEN_KEY || 'Authorization',
    storageKey: import.meta.env.VITE_APP_AUTH_KEY || 'aiadmin-auth',
  },
}